<table>
  <tr>
    <td style="width: 600px;vertical-align: top;">
<p style="font-size: x-large;font-weight: bold;">选择一个颗粒物项目 </p>


{% if  CanCreate==True %}
  <a href="/part/prjedit/0" class="btn btn-success" >创建一个新的颗粒物项目</a>
{% else %}
  <p style="margin-bottom: 0">若想创建新项目并上传图片，请联系网站管理员: </p><ul>{{ GetManagerList('Ecotaxa : Please provide me the Project creation rights')|safe }}</ul>
{% endif %}
</td>
  <td style="padding-left: 50px;vertical-align: top;">
  <div class="panel panel-default">
  <div class="panel-body">
    <form method="get">
      <table>
        <tr>
          <td style="padding-right: 5px;">以标题来筛选 : </td>
          <td><input type="text"  style="width: 100px;margin : 0 10px 3px 0;" name="filt_title" id="filt_title" value="{{ filt_title }}"></td>
          <td rowspan="3" style="vertical-align: top"><button type="submit" class="btn btn-primary">搜索</button></td>
        </tr>
        <tr>
          <td>设备 : </td>
          <td><input type="text" style="width: 100px;" name="filt_instrum" id="filt_instrum" value="{{ filt_instrum }}">
                </td>
        </tr>
      </table>
    </form>
  </div></div>
    </td>
  </tr>
</table>
<table class='table table-hover table-verycondensed projectsList'>
        <thead><tr>
                <th></th>
                <th>标题[ID]</th>
                <th>设备</th>
                <th>Ecotaxa项目</th>
                <th>文件夹</th>
                <th>样品数量</th>
            </tr>
        </thead>
        <tbody>
{%   for r in PrjList %}
<tr><td><a class='btn btn-primary' href='/part/prj/{{ r[0] }}'>选择</a></td>
  <td> {{ r[1] }} [{{ r[0] }}] {{ ("<a href='mailto:"+r['email']+"'>"+r['name']+"</a>") |safe if r['email'] }}</td>
  <td>{{ r['instrumtype'] or "" }}</td>
  <td>{{ r['title'] or "" }}</td>
  <td>{{ r['rawfolder'] or "" }}</td>
  <td>{{ r['samplecount'] }}</td>

  </tr>
{%  endfor %}

</tbody></table>
<script>
$('#filt_title').focus();
</script>


